const path = require('path')

module.exports = {
  version: '1.0.0',
  title: '姿肽美',
  build: {
    env: require('./prod.env'),
    index: path.resolve(__dirname, '../dist/index.html'),
    assetsRoot: path.resolve(__dirname, '../dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    productionSourceMap: false,
    productionGzip: false,
    productionGzipExtensions: ['js', 'css'],
    bundleAnalyzerReport: process.env.npm_config_report,
    path: '/api',
    token:
      '23283155e810ff46e9a87c40de170a77e4c2e021b8b9328a89a8e9c4c94d2450d0afe7b579c49975911c3bb6ad06aace:b45032b1ff0db6c30f4c553c6ba4e081',
    viewAction: 'https://upload.emeker.com',
    uploadAction: 'https://upload.emeker.com/upload'
  },
  dev: {
    env: require('./dev.env'),
    port: process.env.PORT || 3000,
    autoOpenBrowser: true,
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {
      '/api': {
        target: 'http://127.0.0.1:3100',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/pl'
        }
      }
    },
    cssSourceMap: true,
    path: '/api',
    token:
      '766ee2e2414a040a23b384527b12dee164114ac35919aa5fd5d796c04e8b32e2d0afe7b579c49975911c3bb6ad06aace:90b32eaab9f74de9ec871bbe996fdb63',
    viewAction: 'https://upload.emeker.com',
    uploadAction: 'https://upload.emeker.com/upload'
  }
}
